#ifndef __G_IPLATFORM_H__
#define __G_IPLATFORM_H__

#include "Define.h"
#include "..\Log.h"
#include "..\MessageServer.h"
#include "..\Game\IGame.h"

class IPlatform
{
protected:
	char* m_szTitle;
	FWuint m_iFlags;
	FWuint m_iWidth;
	FWuint m_iHeight;
protected:
	IGame* m_pGame;
public:
	//Register game which runned in platform
	void RegisterGame(IGame* game){ m_pGame = game; }
	//Initialize used data
	virtual FWint Init() = 0;
	//Run device
	virtual void Run() = 0;
	//Relese all used data
	virtual void Destroy() = 0;
	//End device loop
	virtual void End() = 0;
};

#endif